﻿using AutoMapper;
using S.Parturition.API.Application.Command;
using S.Parturition.API.Dto;
using S.Parturition.Domain.Model;

namespace S.Parturition.API.Extensions.AutoMapper
{
    public class SetProfile : Profile
    {
        public SetProfile()
        {
            //种母分娩添加
            CreateMap<AddParturitionDto, ParturitionModel>();
            //羔羊登记添加
            CreateMap<AddLambRegistrationCommand, LambRegistrationModel>();
            //羔羊登记修改
            CreateMap<UpdateLambRegistrationCommand, LambRegistrationModel>();
            //种母分娩修改
            CreateMap<ParturitionUpdateCommand, ParturitionModel>();
        }
    }
}
